package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * GroupList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "group_list", catalog = "imcdbserver", uniqueConstraints = @UniqueConstraint(columnNames = {
		"uid", "group_name" }))
public class GroupList implements java.io.Serializable {

	// Fields

	private GroupListId id;

	// Constructors

	/** default constructor */
	public GroupList() {
	}

	/** full constructor */
	public GroupList(GroupListId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "uid", column = @Column(name = "uid", nullable = false)),
			@AttributeOverride(name = "groupName", column = @Column(name = "group_name", length = 100)),
			@AttributeOverride(name = "groupDate", column = @Column(name = "group_date")),
			@AttributeOverride(name = "corpId", column = @Column(name = "corp_id")) })
	public GroupListId getId() {
		return this.id;
	}

	public void setId(GroupListId id) {
		this.id = id;
	}

}